import request from "@/utils/request";
import { AxiosPromise } from "axios";
import { loginLog, loginLogQuery } from "./types";

export function fetchList(
  queryParams: loginLogQuery
): AxiosPromise<PageResult<loginLog[]>> {
  return request({
    url: "/admin/loginLog/index",
    method: "get",
    params: queryParams,
  });
}

export function delLog(data: any) {
  return request({
    url: "/admin/loginLog/del",
    method: "delete",
    data,
  });
}
